package com.butuh.uang.tuh.ang.net;

import com.butuh.uang.tuh.ang.model.BaseResult;
import com.butuh.uang.tuh.ang.model.BeannerResult;
import com.butuh.uang.tuh.ang.model.HomeListResult;
import com.butuh.uang.tuh.ang.model.ProductDetailResult;
import com.butuh.uang.tuh.ang.model.YinSiResult;

import java.util.Map;

import cn.droidlover.xdroidmvp.net.IModel;
import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.HeaderMap;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by wanglei on 2016/12/31.
 */

public interface NetService {

    @POST("query/dapatkanProduk")
    Flowable<HomeListResult> getList(@HeaderMap Map<String, String> headers, @Body RequestBody route);


    @POST("query/acquireProductdetail")
    Flowable<ProductDetailResult> getProductDetail(@HeaderMap Map<String, String> headers, @Body RequestBody route);

    @POST("query/getDirectory")
    Flowable<YinSiResult> getYinSi(@HeaderMap Map<String, String> headers, @Body RequestBody route);

    @POST("query/getDirectory")
    Flowable<BeannerResult> getBanner(@HeaderMap Map<String, String> headers, @Body RequestBody route);

    @POST("query/evlog")
    Flowable<BaseResult> onClickLog(@HeaderMap Map<String, String> headers, @Body RequestBody route);


    @POST("query/setdeviceinfo")
    Flowable<BaseResult> setdeviceinfo(@HeaderMap Map<String, String> headers, @Body RequestBody route);
}
